<?php
$pass = '';
if(!empty($this->params['pass'])){
	$pass = $this->params['pass'][0];
}
	$html->addCrumb('Manager','/manager/');
	$html->addCrumb('Dozenten verwalten','/manager/professors/');
	$html->addCrumb('Dozent ändern','/manager/professors/update/'.$pass,array('escape'=>false));
	
	echo  $this->element('tasks',array('target'=>'/manager/professors'));
?>
<div class="title">Dozent ändern</div>

<?php echo $this->element('flashMessage') ?>

<?php 
	echo $this->Form->create('Professor',array('class'=>'form','action'=>'update'));
	
	echo $this->Form->input('title',array('label'=>'Titel:'));
	echo $this->Form->input('first_name',array('label'=>'Vorname:'));
	echo $this->Form->input('family_name',array('label'=>'Nachname:'));
	echo $this->Form->input('email',array('label'=>'email:'));
	echo $this->Form->input('phone_number',array('label'=>'Telefon:'));
	
	echo '<div class="form_div_buttons">';
	echo '<input type="submit" name="&auml;ndern" value="Anlegen">';
	echo '<a href="'.URL_PREFIX.'/manager/Professors/"><button>Abbrechen</button></a>';
	echo '</div>';
	
	echo $this->Form->end();
?>